    $(document).ready(function() {
        $.ajax({
          async : false,
          cache : false,
          type : 'POST',
          dataType : "json",
          url : "{:URL('cms/Article/cateTreeAllList')}",//请求的action路径
          data : {
            id : 1
          },
          success : function(data) { //请求成功后处理函数。
            $.fn.zTree.init($("#treeDemo"), setting, data);
          }
        });
        //$("#contentWindow").attr("src", "{:URL('cms/Article/content')}");
      });

      var setting = {
        data : {
          simpleData : {
            enable : true
          }
        },
        callback : {
          beforeClick : beforeClick
        }
      };

      function beforeClick(treeId, treeNode) {
        var id = treeNode.id;
        var name = treeNode.name;
        var siteid = treeNode.siteid;
        var str_get = '&sid='+siteid+'&cid=' + id + '&name=' + name;
        $("#contentWindow").attr("src", "{:URL('cms/Article/content')}" + str_get);
        })
